package com.haust.leyou.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Auther: csp1999
 * @Date: 2020/12/18/13:40
 * @Description: 阿里云SMS属性配置类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
@Component
@PropertySource(value = {"classpath:/application.properties"})
@ConfigurationProperties(prefix = "aliyun.sms")
public class AliyunSmsPropertiesConfig {

    private String accessKeyId;

    private String accessKeySecret;

    private String templateCode;

    private String signName;
}
